#include "logindialog.h"
#include "ui_logindialog.h"

LoginDialog::LoginDialog(QWidget *parent)
    : QDialog(parent)
    , ui(new Ui::LoginDialog)
{
    ui->setupUi(this);
    //点击注册按钮后触发switchRegister信号
    ui->forget_label->SetState("normal","hover","press",
                               "selected","selected_hover","selected_press");

    connect(ui->forget_label,&ClickedLabel::clicked,this,&LoginDialog::slotForgetPwd);

    connect(ui->register_btn,&QPushButton::clicked,this,&LoginDialog::switchRegister);
}

LoginDialog::~LoginDialog()
{
    delete ui;
}

void LoginDialog::slotForgetPwd()
{
    qDebug()<<"slot forget pwd";
    emit switchReset();
}
